import appMain from "@/components/appMain.vue";
import cmsInput from './pagecomponents/cmsInput.vue'//横向标签组件
import cmsButton from './pagecomponents/cmsButton.vue'//cms图标按钮组件
import cmsPagination from './pagecomponents/cmsPagination.vue'//cms分页
import cmsBack from './pagecomponents/cmsBack.vue'//cms返回
import cmsRole from './pagecomponents/cmsRole.vue'//cms角色
import cmsUpload from './pagecomponents/cmsUpload.vue'//cms上传
import cmsVideoUpload from './pagecomponents/cmsVideoUpload'//cms上传
import cmsAttachment from './cmscomponents/cmsAttachment'//cms上传
import cmsTree from './cmscomponents/cmsTree.vue'
import channelTree from './cmscomponents/cmsChannelTree.vue'
import areaTree from './cmscomponents/areaTree.vue'
import commonTree from './cmscomponents/commonTree.vue'
import cmsSiteTree from './cmsComponents/cmsSiteTree.vue'//站点树插件
import orangeAlert from './cmsComponents/orangeAlert.vue'
import cmsEditor from './pagecomponents/cmsEditor.vue'
import cmsFileUpload from './pagecomponents/cmsFileUpload.vue'
import cmsAdvertise from '@/views/config/directive/cmsAdvertise.vue'
import cmsChannel from '@/views/config/directive/cmsChannel.vue'
import cmsComment from '@/views/config/directive/cmsComment.vue'
import cmsContent from '@/views/config/directive/cmsContent.vue'
import cmsAttachUpload from './pagecomponents/cmsAttachUpload.vue'
import cmsMultipleUpload from './pagecomponents/cmsMultipleUpload.vue'
import cmsBatchMultipleUpload from './pagecomponents/cmsBatchMultipleUpload.vue'
import cmsBatchPictrues from './pagecomponents/cmsBatchPictrues.vue'
import cmsPictrues from './pagecomponents/cmsPictrues.vue'
import cmsExportUpload from './pagecomponents/cmsExportUpload'
import cmsTopic from '@/views/config/directive/cmsTopic.vue'
import cmsTag from '@/views/config/directive/cmsTag.vue'
import cmsSiteDialog from './cmscomponents/cmsSiteDialog.vue'
import cmsDepartment from './cmscomponents/cmsDepartment.vue'
import aliVideoUpload from './pagecomponents/aliVideoUpload.vue'
import aliVideoOnlyUpload from './pagecomponents/aliVideoOnlyUpload.vue'
import contentPreview from './pagecomponents/contentPreview.vue'
import contentTop from './pagecomponents/contentTop.vue'
import aliPlayer from './pagecomponents/aliPlayer.vue'
import imgPreivew from './pagecomponents/imgPreivew.vue'
import contentLike from './pagecomponents/contentLike.vue'
import cmsMangeNews from './cmscomponents/cmsMangeNews.vue'
// 这里是重点
const cmsComponents = {
  install: function (Vue) {
    Vue.component('cmsInput', cmsInput);
    Vue.component('cmsButton', cmsButton);
    Vue.component('cmsPagination', cmsPagination);
    Vue.component('cmsBack', cmsBack);
    Vue.component('cmsRole', cmsRole);
    Vue.component('appMain', appMain);
    Vue.component('cmsUpload', cmsUpload);
    Vue.component('cmsVideoUpload', cmsVideoUpload);
    Vue.component('cmsSiteTree', cmsSiteTree);
    Vue.component('cmsTree', cmsTree);
    Vue.component('channelTree', channelTree);
    Vue.component('areaTree', areaTree);
    Vue.component('commonTree', commonTree);
    Vue.component('cmsEditor', cmsEditor);
    Vue.component('cmsFileUpload', cmsFileUpload);
    Vue.component('cmsAdvertise', cmsAdvertise);
    Vue.component('cmsChannel', cmsChannel);
    Vue.component('cmsComment', cmsComment);
    Vue.component('cmsContent', cmsContent);
    Vue.component('cmsAttachUpload', cmsAttachUpload);
    Vue.component('cmsMultipleUpload', cmsMultipleUpload);
    Vue.component('cmsBatchMultipleUpload', cmsBatchMultipleUpload);
    Vue.component('cmsPictrues', cmsPictrues);
    Vue.component('cmsBatchPictrues', cmsBatchPictrues);
    Vue.component('cmsTopic', cmsTopic);
    Vue.component('cmsTag', cmsTag);
    Vue.component('cmsSiteDialog', cmsSiteDialog);
    Vue.component('cmsDepartment', cmsDepartment);
    Vue.component('cmsExportUpload', cmsExportUpload);
    Vue.component('orangeAlert', orangeAlert);
    Vue.component('aliVideoUpload', aliVideoUpload);
    Vue.component('aliVideoOnlyUpload', aliVideoOnlyUpload);
    Vue.component('aliPlayer', aliPlayer);
    Vue.component('imgPreivew', imgPreivew);
    Vue.component('contentTop', contentTop);
    Vue.component('contentPreview', contentPreview);
    Vue.component('contentLike', contentLike);
    Vue.component('cmsAttachment', cmsAttachment);
    Vue.component('cmsMangeNews', cmsMangeNews);
  }
}

// 导出组件
export default cmsComponents
